<div class="portlet">
  <div class="portlet-header">
    <h1><%=t ".title"%></h1>
  </div>

  <div class="portlet-content">
    <% form_tag general_news_letters_path, :method => 'get' do %>
      <table style="border:0px">
        <tr>
          <th> <%= label_tag t('activerecord.attributes.general_news_letter.description') %> </th>
          <th> <%= text_field_tag :search_description, params[:search_description] %> </th>
          <th style="width: 10px"> </th>
          <th> <%= label_tag t('activerecord.attributes.general_news_letter.state') %> </th>
          <th> <%= select_tag(:search_state,options_for_select(@states.map {|u| [t(u),u]}, params[:search_state])) %> </th>
          <th style="width: 10px"> </th>
          <th> <%= submit_tag t('btn_search'), :name => nil %> </th>
        </tr>
      </table>
    <% end %>

    <div class="line-label">
      <%= page_entries_info(@general_news_letters) %>
    </div>

    <% if @general_news_letters.size > 0 %>
      <% paginated_section(@general_news_letters, options_will_paginate) do %>
        <table>
          <thead>
            <tr>
              <th><%=t('activerecord.attributes.general_news_letter.date_to_send')%></th>
              <th><%=t('activerecord.attributes.general_news_letter.description')%></th>
              <th><%=t('activerecord.attributes.general_news_letter.state')%></th>
              <th colspan="4"><%= t('title_actions') %></th>
            </tr>
          </thead>

          <tbody>
            <% @general_news_letters.each do |general_news_letter| %>
              <tr>
                <td><%=h general_news_letter.date_to_send %></td>
                <td><%=h general_news_letter.description %></td>
                <td><%=h t(general_news_letter.state) %></td>

                <td class="action"><%= link_to t('btn_show'), general_news_letter %></td>
                <td class="action"><%= link_to t('btn_edit'), edit_general_news_letter_path(general_news_letter) %></td>
                <td class="action"><%= link_to t('general_news_letters.index.btn_show_materials'), general_news_letter_materials_path(general_news_letter) %></td>
                <td class="action"><%= link_to t('btn_destroy'), general_news_letter, :confirm => t('msg_sure_destroy?'), :method => :delete %></td>
              </tr>
            <% end %>
          </tbody>
        </table>
      <% end %>
    <% end %>

    <div class="line-links">
      <%= link_to t('general_news_letters.index.btn_new_general_news_letter'), new_general_news_letter_path %>
    </div>
  </div>

  <div class="portlet-footer">
  </div>
</div>

